﻿<%@ page language="java" contentType="text/html; charset=UTF-8"  pageEncoding="UTF-8"%>
<%@ taglib uri="/struts-tags" prefix="s" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<title>添加学生</title>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<%--
<link href="${pageContext.request.contextPath }/css/.css" type=text/css rel=stylesheet>
<link href="${pageContext.request.contextPath }/css/.css" type=text/css rel=stylesheet>
 --%>
<!-- 引入datapicker插件 -->
<link rel="stylesheet" href="${pageContext.request.contextPath }/jquery/jquery.datepick.css" type="text/css">
<script type="text/javascript" src="${pageContext.request.contextPath }/jquery/jquery-1.4.2.js"></script>
<script type="text/javascript" src="${pageContext.request.contextPath }/jquery/jquery.datepick.js"></script>
<script type="text/javascript" src="${pageContext.request.contextPath }/jquery/jquery.datepick-zh-CN.js"></script>
<script type="text/javascript">
	$(function(){
		//使用class属性处理  'yy-mm-dd' 设置格式"yyyy/mm/dd"
		$('#nextDate').datepick({dateFormat: 'yy-mm-dd'}); 
	});

</script>

<meta content="MSHTML 6.00.2900.3492" name=GENERATOR>
</head>
<body>
	<h2>添加学生</h2>
	<s:form action="addCustomer" namespace="/customer">		
		<table cellSpacing=0 cellPadding=5  border=0>
			<tr>
				<td>学生姓名：</td>
				<td>
					<s:textfield name="studentName" class="textbox" id="" style="width: 180px" maxLength="50" />
				</td>
			</tr>
			<tr>
				<td>性&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;别：</td>
				<td>
					<s:radio name="studentSex" list="#{'0':'男','1':'女'}" class="textbox" id="" value="0"/>
				</td>
			</tr>
			<tr>
				<td>年&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;龄：</td>
				<td>
					<s:textfield name="studentAge" class="textbox" id="" style="width: 180px" maxLength="50" />
				</td>
			</tr>
			<tr>	
				<td>负责员工 ：</td>
				<td>
				<s:select name="affiliatedTeacher.userId" list="affiliatedTeachers" listKey="userId" listValue="userName" headerKey="" class="textbox" id="" style="width: 180px">
				
				</s:select>

				</td>
			</tr>
			<tr>
				<td>爸爸电话：</td>
				<td>
					<s:textfield name="phone1" class="textbox" id="" style="width: 180px" maxLength="50" />
				</td>
			</tr>
			<tr>
				<td>妈妈电话：</td>
				<td>
					<s:textfield name="phone2" class="textbox" id="" style="width: 180px" maxLength="50" />
				</td>
			</tr>
			<tr>
				<td>下次联系日期：</td>
				<td>
				<INPUT class=textbox id="nextDate" readonly="readonly"
					style="WIDTH: 180px" maxLength=50 name="nextDate">
				</td>
				<td><font color=red>注：当“负责员工”为“公海”时，“下次联系时间”设置无效</font></td>
				<!-- <td>拜访地点 ：</td>
				<td>
				<INPUT class=textbox id=sChannel2
					style="WIDTH: 180px" maxLength=50 name="visitAddr">
				</td> -->
			</tr>		
			<tr>
				<td>家庭住址：</td>
				<td>
					<s:textfield name="address" class="textbox" id="" style="width: 300px" />
				</td>
			</tr>
			<tr>
				<td>备&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;注：</td>
				<td>
					<s:textarea name="remark" class="textbox" id="" style="width: 180px; height:50px"  />
				</td>
			</tr>
			<tr>
				<td></td>
			</tr>
			<tr>
				<td></td>
				<td></td>
				
				<td rowspan=2>
					<s:submit value="提交"/>
				</td>
			</tr>

		</table>
	</s:form>
</body>
</html>
